package cn.csc.module.distribute.api.distributor;

import cn.csc.framework.common.pojo.CommonResult;
import cn.csc.module.distribute.api.distributor.dto.DistributorReqDTO;
import cn.csc.module.distribute.enums.ApiConstants;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @author 云隐
 * @date 2025/4/27
 **/
@FeignClient(name = ApiConstants.NAME) // TODO fallbackFactory =
@Api(tags = "RPC 服务 - distributor")
public interface DistributorApi {

    String PREFIX = ApiConstants.PREFIX + "/distributor";

    /**
     * 待入佣金
     * @param
     * @return
     */
    @PostMapping(value = PREFIX + "/pening")
    CommonResult<Boolean> pening(@Valid @RequestBody DistributorReqDTO reqDTO);

    /**
     * 收货可提现
     * @param
     * @return
     */
    @PostMapping(value = PREFIX + "/withdrawable")
    CommonResult<Boolean> withdrawable(@Valid @RequestBody DistributorReqDTO reqDTO);
}
